Optimal. Leaf size=51 \[ \frac{2}{3} x \sqrt{\frac{a}{x^2}+b x}-\frac{2}{3} \sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a}}{x \sqrt{\frac{a}{x^2}+b x}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0649497, antiderivative size = 51, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.267, Rules used = {1979, 2007, 2029, 206} \[ \frac{2}{3} x \sqrt{\frac{a}{x^2}+b x}-\frac{2}{3} \sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a}}{x \sqrt{\frac{a}{x^2}+b x}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1979
Rule 2007
Rule 2029
Rule 206
Rubi steps
\begin{align*} \int \sqrt{\frac{a+b x^3}{x^2}} \, dx &=\int \sqrt{\frac{a}{x^2}+b x} \, dx\\ &=\frac{2}{3} x \sqrt{\frac{a}{x^2}+b x}+a \int \frac{1}{x^2 \sqrt{\frac{a}{x^2}+b x}} \, dx\\ &=\frac{2}{3} x \sqrt{\frac{a}{x^2}+b x}-\frac{1}{3} (2 a) \operatorname{Subst}\left (\int \frac{1}{1-a x^2} \, dx,x,\frac{1}{x \sqrt{\frac{a}{x^2}+b x}}\right )\\ &=\frac{2}{3} x \sqrt{\frac{a}{x^2}+b x}-\frac{2}{3} \sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a}}{x \sqrt{\frac{a}{x^2}+b x}}\right )\\ \end{align*}
Mathematica [A] time = 0.0366667, size = 66, normalized size = 1.29 \[ \frac{2 x \sqrt{\frac{a}{x^2}+b x} \left (\sqrt{a+b x^3}-\sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a+b x^3}}{\sqrt{a}}\right )\right )}{3 \sqrt{a+b x^3}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.007, size = 55, normalized size = 1.1 \begin{align*}{\frac{2\,x}{3}\sqrt{{\frac{b{x}^{3}+a}{{x}^{2}}}} \left ( -\sqrt{a}{\it Artanh} \left ({\sqrt{b{x}^{3}+a}{\frac{1}{\sqrt{a}}}} \right ) +\sqrt{b{x}^{3}+a} \right ){\frac{1}{\sqrt{b{x}^{3}+a}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{\frac{b x^{3} + a}{x^{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.846674, size = 261, normalized size = 5.12 \begin{align*} \left [\frac{2}{3} \, x \sqrt{\frac{b x^{3} + a}{x^{2}}} + \frac{1}{3} \, \sqrt{a} \log \left (\frac{b x^{3} - 2 \, \sqrt{a} x \sqrt{\frac{b x^{3} + a}{x^{2}}} + 2 \, a}{x^{3}}\right ), \frac{2}{3} \, x \sqrt{\frac{b x^{3} + a}{x^{2}}} + \frac{2}{3} \, \sqrt{-a} \arctan \left (\frac{\sqrt{-a} x \sqrt{\frac{b x^{3} + a}{x^{2}}}}{a}\right )\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.13836, size = 93, normalized size = 1.82 \begin{align*} \frac{2}{3} \,{\left (\frac{a \arctan \left (\frac{\sqrt{b x^{3} + a}}{\sqrt{-a}}\right )}{\sqrt{-a}} + \sqrt{b x^{3} + a}\right )} \mathrm{sgn}\left (x\right ) - \frac{2 \,{\left (a \arctan \left (\frac{\sqrt{a}}{\sqrt{-a}}\right ) + \sqrt{-a} \sqrt{a}\right )} \mathrm{sgn}\left (x\right )}{3 \, \sqrt{-a}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]